package main

import "fmt"

func main()  {
	var ti complex128 = 32 + 11i
	fmt.Println("ti = ", ti)

	t1 := 22 + 12i
	fmt.Printf("t1 type is %T\n", t1)

	//取出复数的实部和虚部
	//real取出复数的实部，imag(取出实数的虚部)
	t2 := 33 + 34i
	fmt.Println("real is", real(t2), "imag is", imag(t2))
}
